<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生夜宵点餐系统 - 我的订单</title>
    <link rel="stylesheet" href="../css/style.css">
</head>
<body>
    <header>
        <div class="header-container">
            <h1>学生夜宵点餐系统</h1>
            <div class="user-info">
                <span id="username">欢迎，学生</span>
                <button id="logoutBtn" class="btn-logout">退出登录</button>
                <a href="student_home.html" class="btn-home">返回首页</a>
            </div>
        </div>
    </header>
    
    <div class="container">
        <div class="order-tabs">
            <button class="tab-btn active" data-tab="all">全部订单</button>
            <button class="tab-btn" data-tab="pending">待支付</button>
            <button class="tab-btn" data-tab="paid">已支付</button>
            <button class="tab-btn" data-tab="delivering">配送中</button>
            <button class="tab-btn" data-tab="completed">已完成</button>
        </div>
        
        <div class="order-content">
            <!-- 全部订单 -->
            <div id="all" class="tab-content active">
                <h2>全部订单</h2>
                <div id="allOrders" class="order-list">
                    <!-- 全部订单列表将通过JavaScript动态加载 -->
                </div>
            </div>
            
            <!-- 待支付订单 -->
            <div id="pending" class="tab-content">
                <h2>待支付订单</h2>
                <div id="pendingOrders" class="order-list">
                    <!-- 待支付订单列表将通过JavaScript动态加载 -->
                </div>
            </div>
            
            <!-- 已支付订单 -->
            <div id="paid" class="tab-content">
                <h2>已支付订单</h2>
                <div id="paidOrders" class="order-list">
                    <!-- 已支付订单列表将通过JavaScript动态加载 -->
                </div>
            </div>
            
            <!-- 配送中订单 -->
            <div id="delivering" class="tab-content">
                <h2>配送中订单</h2>
                <div id="deliveringOrders" class="order-list">
                    <!-- 配送中订单列表将通过JavaScript动态加载 -->
                </div>
            </div>
            
            <!-- 已完成订单 -->
            <div id="completed" class="tab-content">
                <h2>已完成订单</h2>
                <div id="completedOrders" class="order-list">
                    <!-- 已完成订单列表将通过JavaScript动态加载 -->
                </div>
            </div>
        </div>
    </div>
    
    <!-- 订单详情模态框 -->
    <div id="orderDetailModal" class="modal">
        <div class="modal-content">
            <span class="close">&times;</span>
            <h2>订单详情</h2>
            <div id="orderDetailContent">
                <!-- 订单详情将通过JavaScript动态加载 -->
            </div>
        </div>
    </div>
    
    <script src="../js/student_orders.js"></script>
</body>
</html>